import Vue from 'vue'
import App from './App'

import store from "./store/index"
import storage from './core/storage'
import request from './core/request'
import upload from './core/upload'
import loading from './core/libs/loading'
import test from './core/libs/test'
import event from './core/libs/event'
import utils from './core/libs/utils'
import config from './core/config'
import apis from './core/apis'
import models from './core/models'
import './static/iconfont/iconfont.css'

Vue.use({
    install(Vue, options) {
        Vue.prototype.$storage = storage
        Vue.prototype.$request = request
        Vue.prototype.$upload = upload
        Vue.prototype.$loading = loading
        Vue.prototype.$test = test
        Vue.prototype.$event = event
        Vue.prototype.$utils = utils
        Vue.prototype.$config = config
        Vue.prototype.$apis = apis
        Vue.prototype.$models = models
    }
})

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
    store,
    ...App
})
app.$mount()
